package priv.lhy.activity.draw;

import priv.lhy.activity.commons.ResultResp;
import priv.lhy.activity.draw.bean.ActivityTurntableDrawReq;
import priv.lhy.activity.draw.bean.AwardDrawRecordBean;

import java.util.List;

/**
 * author : lihy
 * date : 2019/2/15 14:05
 */
public interface IActivityTurntableDrawService {

    /**
     * 抽奖
     *
     * @param activityTurntableDrawReq
     * @return
     */
    ResultResp<AwardDrawRecordBean> doDraw(ActivityTurntableDrawReq activityTurntableDrawReq);

    /**
     * 查询用户剩余抽奖次数
     *
     * @param activityTurntableDrawReq
     * @return
     */
    int queryRemainDrawCount(ActivityTurntableDrawReq activityTurntableDrawReq);

    /**
     * 查询抽奖记录
     *
     * @param activityTurntableDrawReq
     * @return
     */
    List<AwardDrawRecordBean> queryAwardDrawRecord(ActivityTurntableDrawReq activityTurntableDrawReq);
}
